package model

import "gorm.io/gorm"

type QuestionBank struct {
	gorm.Model
	Title       string `gorm:"type:varchar(255);column:title;comment:标题"`
	Description string `gorm:"type:varchar(255);column:description;comment:描述"`
	Picture     string `gorm:"type:varchar(255);column:picture;comment:图片"`
	UserId      uint   `gorm:"type:bigint;column:userId;comment:创建用户id"`
}

func (QuestionBank) TableName() string {
	return "question_bank"
}

func (QuestionBank) TableComment() string {
	return "题库表"
}
